//----------------------------------------------------------------
#ifndef RESOURCENODE_H
#define RESOURCENODE_H
//----------------------------------------------------------------
#include "Common.h"
//----------------------------------------------------------------
class ResourceNode
{
public:
	ResourceNode(ResourceList kNodeType, int iTotalAmount, int iPosX, int iPosY);
	~ResourceNode();

	int getPosX() { return m_iPosX; }
	int getPosY() { return m_iPosY; }

	int getCurrentAmount() { return m_iCurrentAmount; }
	void mine(int iAmountMined);

protected:
	int m_iTotalAmount;
	int m_iCurrentAmount;
	ResourceList m_kResourceType;

	int m_iPosX;
	int m_iPosY;
};
//----------------------------------------------------------------
#endif //RESOURCENODE_H
//----------------------------------------------------------------
